<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<th:block th:include="tpl :: common_head()"></th:block>
	<link rel="stylesheet" type="text/css" href="../../assets/libs/videoUpload/pictureUpload.css" />
	<script src="../../assets/libs/videoUpload/pictureUpload.js"></script>
	<title>栏目管理</title>
</head>
<body th:object="${obj}" th:with="entrance='/system/channel/index'">
	<th:block th:replace="tpl :: common_body(~{::.main-right})">
		<div class="main-right">
			<h1 class="main-right-h1">栏目管理</h1>
			<ul class="main-right-tab">
				<li><a href="index">列表</a></li>
				<li class="selected" th:if="*{id==null}">新增</li>
				<li class="selected" th:if="*{id!=null}">编辑</li>
			</ul>
			<form class="form" method="POST"  onsubmit="return check()">
				<fieldset>
					<legend>信息</legend>
					<dl>
						<dt>栏目名称</dt>
						<dd>
							<input type="text" th:field="*{displayName}"></input>
						</dd>
						<dt>排序</dt>
						<dd>
							<input type="text" th:field="*{sort}" data-verify="int"/>
						</dd>
					</dl>
				</fieldset>
				<input type="submit" value="提交"/>
			</form>
		</div>
	</th:block>
</body>
<script>
		var index = "";
		function close(){
			layer.close(index);
		}
		function showImage(image,type) {
	        index = layer.open({
	            type: 2,
	            area: ['1240px','500px'],
	            title: "图片上传",
	            shade: 0.6,
	            scrollbar: false,
	            fixed: true,
	            maxmin: true,
	            content:"../show/showImagePage/"+type+"/"+image
	        });
	    }
</script>
</html>